package com.aynu.bookstore.beans;

import java.io.Serializable;
import java.util.Date;

public class Orders implements Serializable{
    private String id;

    private Double money;

    private String receiveraddress;

    private String receivername;

    private String receiverphone;

    private Integer paystate;

    private Date ordertime;

    private Integer userId;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Double getMoney() {
		return money;
	}

	public void setMoney(Double money) {
		this.money = money;
	}

	public String getReceiveraddress() {
		return receiveraddress;
	}

	public void setReceiveraddress(String receiveraddress) {
		this.receiveraddress = receiveraddress;
	}

	public String getReceivername() {
		return receivername;
	}

	public void setReceivername(String receivername) {
		this.receivername = receivername;
	}

	public String getReceiverphone() {
		return receiverphone;
	}

	public void setReceiverphone(String receiverphone) {
		this.receiverphone = receiverphone;
	}

	public Integer getPaystate() {
		return paystate;
	}

	public void setPaystate(Integer paystate) {
		this.paystate = paystate;
	}

	public Date getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(Date ordertime) {
		this.ordertime = ordertime;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public Orders(String id, Double money, String receiveraddress, String receivername, String receiverphone,
			Integer paystate, Date ordertime, Integer userId) {
		super();
		this.id = id;
		this.money = money;
		this.receiveraddress = receiveraddress;
		this.receivername = receivername;
		this.receiverphone = receiverphone;
		this.paystate = paystate;
		this.ordertime = ordertime;
		this.userId = userId;
	}

	public Orders() {
		super();
		// TODO Auto-generated constructor stub
	}

	@Override
	public String toString() {
		return "Orders [id=" + id + ", money=" + money + ", receiveraddress=" + receiveraddress + ", receivername="
				+ receivername + ", receiverphone=" + receiverphone + ", paystate=" + paystate + ", ordertime="
				+ ordertime + ", userId=" + userId + "]";
	}

    
}